package cn.tyoui.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;

import cn.tyoui.bean.HgBean;
import cn.tyoui.mapping.HgManageMapper;
import cn.tyoui.service.HgManageService;

@Controller("hgManageService")
public class HgManageServiceImpl implements HgManageService {

	@Resource
	private HgManageMapper hgManageMapper;
	@Override
	public List<HgBean> queryHg() throws Exception {
		return hgManageMapper.queryHg();
	}
	@Override
	public boolean addHg(HgBean hgBean) throws Exception {
		return hgManageMapper.addHg(hgBean);
	}
	@Override
	public boolean changeHg(HgBean hgBean) throws Exception {
		return hgManageMapper.changeHg(hgBean);
	}
	@Override
	public boolean deleteHg(String id) throws Exception {
		return hgManageMapper.deleteHg(id);
	}
	@Override
	public List<HgBean> queryOneHg(HgBean hgBean) throws Exception {
		return hgManageMapper.queryOneHg(hgBean);
	}
	@Override
	public boolean changeHgState(HgBean hgBean) throws Exception {
		return hgManageMapper.changeHgState(hgBean);
	}

}
